package com.e_manager.soft.emanager.service.impl;

import com.e_manager.soft.emanager.entity.MstParameter;
import com.e_manager.soft.emanager.idao.MstParameterDao;
import com.e_manager.soft.emanager.service.MstParameterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;
import java.util.List;

/**
 * @author : lip[lip4051@163.com]
 * @date : 2018/4/3 0003 下午 1:31
 */
@Service
public class MstParameterServiceImpl implements MstParameterService {
    @Autowired
    private MstParameterDao mstParameterDao;

    @Transactional
    @Override
    public void insertParameter(MstParameter mstParameter) {
        mstParameterDao.insertParameter(mstParameter);
    }

    @Override
    public List<MstParameter> findParameterByType(String type) {
        List<MstParameter> list = mstParameterDao.findParameterByType(type);
        return list;
    }
}
